This file: ReadMe.txt

************************************************************************************************************
* Replication Archive for "Political Homophily in Social Relationships: Evidence from Online Dating Behavior"
* Gregory Huber and Neil Malhotra
* gregory.huber@yale.edu
* April 25, 2016
* Version 1.0
************************************************************************************************************

* PLEASE NOTE: The data from Study 2 take up a good bit of space. Uncompressed, these are 14gb+ stata.dta files. 


This file has 2 folders, study1 and study2

"Study1" contains the data and code necessary to replicate the analysis for the experimental evaluation of dating profiles.

01_Prepare_Recode_DatingLabExperimentData.do loads the raw data (Stored in the RawData folder) and performs recoding (it creates the variable label files stored in varlabels and the analysis dataset stored in recodeddata)
02_Analyze_DatingLabExperimentData.do performs all the analysis of Study 1. This produces output in the Tables folder (Table 1, plus Tables S3, S4, and S5.)
(These are stata.do files)

"Study2" contains the data and code necessary to replicate the analysis for the observation on-line dating behavior analysis.

01_PrepareTable02_and_TableS06andS07DescriptiveAnalysis.do loads the procesed data (stored in the Data folder) and performs the analysis reported in Table 2 as well as Tables S6 and S7)
02_Reformat_Table02_and_TableS07.do reformats the output for Tables 2 and S7
03_00_PrepareTablesS08_and_Figures_1_S2_S3_multivariateanalysis.do performs the multivariate regression analysis used to produce TableS8 and Figures 1, S2, and S3
(Note that this .do file calls 03_01_sub_doalllincoms.do, 03_01_sub_dolincom1vars.do, and 03_01_sub_dolincom2vars.do)
04_Graph_Figure1_SIFigures02and03_regressionlincoms_bothsend.do creates Figures 1, S2, and S3
05_FigureS04_BothSend.do performs the analysis underlying Figure S4 and graps that result



